<?php


namespace App\Utils\Lib\RankLib;


use App\Models\lak\Reservation;
use App\Utils\Lib\Redis;

class DailyList implements MakeRankInterface
{
    public  function MakeRankInterface(){
        $redis = Redis::createRedisObject();
        $redis->select(11);
        $data =  $redis->zRevRange('day',0,-1,true);
        $param=[];
        $arr=[];
        foreach ($data as $key => $value){
            $param['name'] =$key;
            $param['num'] = $value;
            $arr[]=$param;
        }
        return $arr;
    }




}
